package com.hwxm.ltim.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Netty 配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "netty.websocket")
public class NettyConfig {
    
    /**
     * WebSocket 端口
     */
    private Integer port = 9000;
    
    /**
     * WebSocket 路径
     */
    private String path = "/ws";
    
    /**
     * 最大帧大小
     */
    private Integer maxFrameSize = 10240;
}

